using Boo.Lang;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using UnityEngine;

[Serializable]
public class restartc : MonoBehaviour
{
	[Serializable]
	[CompilerGenerated]
	internal sealed class _0024restart_0024451 : GenericGenerator<WaitForSeconds>
	{
		internal restartc _0024self__0024453;

		public _0024restart_0024451(restartc self_)
		{
			_0024self__0024453 = self_;
		}

		public override IEnumerator<WaitForSeconds> GetEnumerator()
		{
			return new _0024(_0024self__0024453);
		}
	}

	[Serializable]
	[CompilerGenerated]
	internal sealed class _0024find_0024454 : GenericGenerator<WaitForSeconds>
	{
		internal restartc _0024self__0024456;

		public _0024find_0024454(restartc self_)
		{
			_0024self__0024456 = self_;
		}

		public override IEnumerator<WaitForSeconds> GetEnumerator()
		{
			return new _0024(_0024self__0024456);
		}
	}

	public AudioClip clip;

	public bool show;

	public restartbutton restartbutton;

	public back back;

	public threeroundsystemc system;

	public void Awake()
	{
		StartCoroutine(find());
	}

	public void Update()
	{
		if (UnityEngine.Input.GetKeyDown(KeyCode.Menu))
		{
			AudioSource.PlayClipAtPoint(clip, Camera.main.transform.position);
			UnityEngine.Object.Instantiate(Resources.Load("ShowAdsR"));
			Time.timeScale = 0.02f;
			Time.fixedDeltaTime = 0.00165f;
			(gameObject.GetComponent("back") as back).enabled = true;
		}
		if (UnityEngine.Input.GetKeyDown(KeyCode.Escape))
		{
			AudioSource.PlayClipAtPoint(clip, Camera.main.transform.position);
			UnityEngine.Object.Instantiate(Resources.Load("ShowAdsR"));
			Time.timeScale = 0.02f;
			Time.fixedDeltaTime = 0.00165f;
			(gameObject.GetComponent("back") as back).enabled = true;
		}
	}

	public IEnumerator restart()
	{
		return new _0024restart_0024451(this).GetEnumerator();
	}

	public IEnumerator find()
	{
		return new _0024find_0024454(this).GetEnumerator();
	}

	public void Main()
	{
	}
}
